package com.woniuxy.userapp.common.exception.code;

public enum UserExceptionCode {
    ACCOUNT_NOT_EXISTS("不存在该账号",2001),
    ACCOUNT_NOT_ROLE("未查询到此账号权限",2002),
    ACCOUNT_NOT_MONEY("账户余额不足,无法完成扣款",2003),
    ACCOUNT_ADDORSUB("ADDORSUB不正确",2004),
    ACCOUNT_PAYWORD_ERROR("密码错误",2005),
    VENUE_NOT_EXISTS("不存在该场馆",2006),
    VENUE_state_ERROR("不存在该场馆状态",2007),
    COACH_NOT_EXISTST("不存在该教练",2008),
    STUDENT_NOT_EXISTST("不存在该学员",2008),
    USERNAME_OR_PASSWORD_NULL("用户名或密码为空",2009),
    DEDACCOUNT_NOT_EXISTS("不存在该扣款方",2010),
    ADDACCOUNT_NOT_EXISTS("不存在该收款方",2011),
    ADDACCOUNT_HAS_EXISTS("该用户名已存在",2012),
    DEPOSIT_ERROR("提现金额大于账户余额",2013),
    ROLE_NOT_EXISTS("不存在该角色",2014),
    VENUE_ADD_FAILS("新增场馆失败",2015),
    STUDENT_ADD_FAILS("新增学生失败",2016),
    COACH_ADD_FAILS("新增教练失败",2017),
    PHONE_IS_EXISTS("该电话已存在",2018),
    EMAIL_IS_EXISTS("该邮箱已存在",2019),
    QQ_IS_EXISTS("该QQ已存在",2020);


    private String message;
    private Integer code;

    UserExceptionCode(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }
}
